import mixin from './libs/mixin.js';
import * as filters from './libs/filters.js'
const path = require("path")
const files = require.context("./libs/moudle", false, /\.js$/);

const moudles = {
  install(Vue) {
	Vue.mixin(mixin);
    files.keys().forEach((key) => {
      const name = path.basename(key, ".js")
	  //console.log('name',name);
      if (name!=='index'){
    	  Vue.prototype[name] = files(key).default || files(key);
		  Vue.prototype[name].Vue = Vue;
      }
      
    })
  }
}

export default moudles;
